package com.czc.qinglong.util;

/**
 * 返回状态码枚举类
 */
public enum ResultBackEnum {
    SUCCESS(200, "操作成功"),
    FAILURE(201, "操作失败"),
    PARAM_ERROR(203, "参数异常"),
    SERVER_ERROR(500, "服务错误");

    private final Integer code;
    private final String message;

    ResultBackEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
